const options = data => (
    {
      title: {
        text: '新闻统计',
        subtext: 'News Manage',
        left: 'center'
      },
      tooltip: {
        trigger: 'item',
        formatter: '{b} : {c} ({d}%)'
      },
      legend: {
        bottom: 10,
        left: 'center',
        data: ['公司新闻', '媒体报道', '企业公告']
      },
      series: [
        {
          name: 'Access From',
          type: 'pie',
          radius: ['40%', '70%'],
          center: ['50%', '50%'],
          avoidLabelOverlap: false,
          selectedMode: 'single',
          itemStyle: {
            borderRadius: 10,
            borderColor: '#fff',
            borderWidth: 2
          },
          labelLine: {
            show: true
          },
          // data: [
          //   {value: 1048, name: '公司新闻'},
          //   {value: 735, name: '媒体报道'},
          //   {value: 580, name: '企业公告'},
          // ],
          data,
          emphasis: {
            itemStyle: {
              borderRadius: 10,
              borderColor: '#fff',
              borderWidth: 2
            }
          }
        }
      ]
    }
)


export {
  options
}